/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2302 - SellTicket
 * <p>Powered by webrx On 2023-06-30 15:48:51
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class SellTicket {
    public static void main(String[] args) {
        //实现Runnable接口
        Ticket t = new Ticket(20);
        Thread t1 = new Thread(t,"科学大道");
        Thread t2 = new Thread(t,"东风路");
        Thread t3 = new Thread(t,"火车站");
        Thread t4 = new Thread(t,"瑞达路");
        t1.start();t2.start();t3.start();t4.start();
    }
}
